.sidebar {
  width: 240px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: width 0.3s ease;
  position: relative;
  border-right: 1px solid var(--border-color);

  &.collapsed {
    width: 60px;
    
    .sidebarHeader, .navLink span, .navHeader span {
      display: none;
    }
    
    .navItem {
      padding-left: 12px !important;
    }
  }
}

.collapseButton {
  position: absolute;
  right: -12px;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  color: var(--sidebar-text);
}

.sidebarHeader {
  padding: 16px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.navList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navItem {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
  
  &:hover {
    background: var(--sidebar-hover-bg);
  }
  
  &.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
  }
}

.navLink, .navHeader {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.chevron {
  margin-left: auto;
}

.subNav {
  margin-top: 4px;
}